package com.aiju.support.mvp;

/**
 * @author: 佐为
 * @date: 2017-02-14 14:18
 * @version: V1.0
 * @Description: 控制层
 */
public abstract class IPresenter<T> {

    /**
     * 视图层
     */
    public T mView;

    /**
     * 绑定视图
     * @param view
     */
    public void attach(T view){
        this.mView = view;
    }

    /**
     * 解绑视图
     */
    public void dettach(){
        mView = null;
    }

}
